package com.panda.controller;/**
 * @author 乐于吕
 * * @date 2024/10/15
 */

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: 乐于吕
 * @CreateTime: 2024-10-15
 * @Description:
 */

@RestController
@RequestMapping("/course")
public class CourseController {

    @Value("${server.port}")
    private String port;

    @GetMapping("m1")
    public String method1(HttpServletRequest request) {
        //测试filters
        String color = request.getParameter("color");
        return "invoke courseController  service  success port:" + port+ " color: "+ color;
    }

}
